Skip to content

Restore channel mask after region init on session restore#23

Merged
rgracin merged 1 commit into
sentek-iotprobe-fw-supportfrom
fix/session_restore_channel_mask_after_device_reset
Jun 29, 2026
Merged

Restore channel mask after region init on session restore#23
rgracin merged 1 commit into
sentek-iotprobe-fw-supportfrom
fix/session_restore_channel_mask_after_device_reset

Conversation

@rgracin

@rgracin rgracin commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Fixed

  • Fixed session channel mask restoration by restoring the LoRaWAN session after region initialization.

Details

The library does save the correct channel mask received from TTN in the JoinAccept message (cf_list) and attempts to restore it on startup, however lorawan_api_set_region is called after lorawan_api_join_session_restore and resets all channel masks back to defaults overwriting the restored configuration.
Swapping the call order in modem_context_init_light so lorawan_api_join_session_restore is called after lorawan_api_set_region fixes this. It makes sure the stored channel mask is used after reset on first transmission.

@rgracin rgracin requested a review from eva-cerncic June 24, 2026 13:46
@rgracin rgracin force-pushed the feat/support_to_set_or_lock_uplink_dwell_time branch from 81aac8b to 7bbd2fd Compare June 25, 2026 12:18
@rgracin rgracin force-pushed the fix/session_restore_channel_mask_after_device_reset branch from f787c8f to c1cd18a Compare June 25, 2026 12:20
@rgracin rgracin force-pushed the feat/support_to_set_or_lock_uplink_dwell_time branch from 7bbd2fd to 38e307a Compare June 29, 2026 10:56
Base automatically changed from feat/support_to_set_or_lock_uplink_dwell_time to sentek-iotprobe-fw-support June 29, 2026 10:56
@rgracin rgracin force-pushed the fix/session_restore_channel_mask_after_device_reset branch from c1cd18a to 06801f0 Compare June 29, 2026 10:58
@rgracin rgracin merged commit b97ef1e into sentek-iotprobe-fw-support Jun 29, 2026
@rgracin rgracin deleted the fix/session_restore_channel_mask_after_device_reset branch June 29, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants